
# a = ['bbc','abc','Zoo','Ci']
# b = sorted(a,key=str.lower)
# print(b)


from functools import reduce
# def fun1(n):
#     return  reduce(lambda x,y:x*y,range(1,n+1))

# def func1(x):
#     return x%3==0
# print(list(filter(func1,range(1,101))))
#
#
# b = map(lambda x:x*x,range(1,11))
# print(list(b))
# #
# #
# a = [1,4,5,9]
# c = (''.join(map(str,a)))
# print(c)
# from functools import  reduce
# def fun1(x,y):
#     return x*10+y
# print(reduce(fun1,a))
#
#
#
# list = [7,-8,5,4,0,-2,-5]
# print(sorted(list,key=lambda x:(int(x<0),abs(x))))

# list1 = []
# list2 = []
# for i in list:
#     if i >= 0:
#         list1.append(i)
#     else:
#         list2.append(i)
# a = sorted(list1)
# b = sorted(list2)
# b = b[::-1]
# c = a+b
# print(c)


# a = 'abc123ABCas235'
# print(''.join(sorted(a,key = lambda x:(x.isdigit() and int(x)%2==0, x.isdigit(),x.isupper(),x.islower()))))
#


